package com.feidee.fdhadoop.logCollect;


import com.feidee.fdcommon.configuration.CustomConfiguration;
import com.feidee.fdcommon.constant.CommonConstant;
import com.feidee.fdhadoop.constant.Constant;

public class LogCollectUtils {

    // 默认测试环境
    public static String getLogUrl() {
        String env = CustomConfiguration.getString(CommonConstant.ENV_KEY, CommonConstant.ENV_TEST);
        String url = Constant.LOG_URL_TEST;
        if (CommonConstant.ENV_LIVE.equals(env)) {
            url = Constant.LOG_URL_LIVE;
        }
        return url;
    }
}
